package com.devshephard.rpcframework;

import com.devshephard.rpcframework.rpc.annotation.EnableRpc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableRpc //是否开启Rpc功能
public class RpcFrameworkEndpointApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(RpcFrameworkEndpointApplication.class,args);
        }catch (Exception e){
            e.printStackTrace();
        }

    }

}
